package com.meiyou.mapper;


import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.meiyou.pojo.Evaluate;


public interface EvaluateMapper {
	/**
	 * 新增评价
	 * @param evaluate
	 * @return
	 */
    @Insert("insert into meiyou_evaluate (p_content,p_date,p_name) values (#{content},#{date},#{name})")
    int insEvaluate(Evaluate evaluate);
    /**
     * 根据用户账户显示评价
     * @param evaluate
     * @return
     */
    @Select("select p_content from meiyou_evaluate where p_name=#{name}")
    String selEvaluate(String name);

}
